#ifndef user_h
#define user_h
#import <Foundation/Foundation.h>

@interface  RegistReq : NSObject
@property (nonatomic,retain)NSString *name;
@property (nonatomic,retain)NSString *email;
@property (nonatomic,retain)NSString *password;
@end

@interface  LoginReq : NSObject
@property (nonatomic,retain)NSString *name;
@property (nonatomic,retain)NSString *password;
@end

@interface  ValidReq : NSObject
@property (nonatomic,retain)NSString *vCode;
@end

@interface  VioletInfo : NSObject
@property (nonatomic,retain)NSString *Name;
@property (nonatomic,retain)NSString *Avatar;
@property (nonatomic,retain)NSString *Bio;
@property (nonatomic,assign)NSInteger Gender;
@property (nonatomic,retain)NSString *NikeName;
- (instancetype) initWith:(NSDictionary*)dict;
@end

@interface  UserInfo : NSObject
@property (nonatomic,retain)NSString *ID;
@property (nonatomic,retain)NSString *Email;
@property (nonatomic,assign)NSInteger Class;
@property (nonatomic,retain)VioletInfo *Info;
@property (nonatomic,assign)NSInteger MaxSize;
@property (nonatomic,assign)NSInteger UsedSize;
@property (nonatomic,assign)NSInteger SingleSize;
- (instancetype) initWith:(NSDictionary*)dict;
@end

#endif /* user_h */
